Pod::Spec.new do |spec|
    spec.name                   = 'WechatOpenSDK' # 包含支付功能
    spec.version                = '2.0.4' # 版本号和微信的保持一致
    spec.homepage               = 'https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html'
    spec.source                 = { :git => 'https://gitee.com/CHAOOO/wechat-open-sdk.git', :tag => spec.version }
    spec.summary                = '微信'
    spec.license                = { :type => 'MIT', :file => 'LICENSE' }
    spec.author                 = { 'chaoo' => 'ch_cuihao@foxmail.com' }
    spec.platform               = :ios, '8.0'
    spec.ios.deployment_target  = '8.0'
    spec.module_name            = 'WechatOpenSDK'
    spec.requires_arc           = true
    spec.static_framework       = true
    spec.swift_version          = '5.0'
    spec.vendored_libraries 	= 'OpenSDK2.0.4/*.a'
    spec.public_header_files    = 'OpenSDK2.0.4/*.h'
    spec.source_files           = 'OpenSDK2.0.4/*.h'
    spec.frameworks             = 'Security', 'UIKit', 'CoreGraphics', 'WebKit'
    spec.libraries              = 'z', 'c++', 'sqlite3.0'
    spec.pod_target_xcconfig    = { 
        'OTHER_LDFLAGS' => '-all_load',
        'VALID_ARCHS' => 'x86_64 armv7 arm64'
    }
end